#include <stdio.h>
#include "kprintf.h"


#define BUF_LEN 100
char buff[BUF_LEN];

#define RUN() printf("%s\n", buff)


int main(void)
{
    mini_snprintf(buff, BUF_LEN, "testing %f %d %d\r\n", 1.23f, 123);
    RUN();
    mini_snprintf(buff, BUF_LEN, "testing %03d %d\r\n", 1, 1234567890);
    RUN();
	mini_snprintf(buff, BUF_LEN, "faster %s %ccheaper%c\r\n", "anASDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD213", '\"', ',');
    RUN();
	mini_snprintf(buff, BUF_LEN, "%x %% %X\r\n", 0xdeadf00d, 0xdeadf00d);
    RUN();
	mini_snprintf(buff, BUF_LEN, "%09d%09d%09d%09d%09d\r\n", 1, 2, 3, 4, 5);
    RUN();
	mini_snprintf(buff, BUF_LEN, "%d %u %d %u\r\n", 50, 50, -50, -50);
    RUN();
}
